package com.bingxue.edu.framework.common.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mybatisflex.annotation.Column;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 带逻辑删除的业务实体类
 * @author panbo
 * @since 2024/6/26
 */
@Getter
@Setter
@Accessors(chain = true)
public abstract class BusinessEntity extends AuditableEntity {

    /**
     * 逻辑删除标记，deleted=0有效
     */
    @JsonIgnore
    @Column(isLogicDelete = true)
    private boolean deleted = false;
}
